package com.piker.pikeropen.server;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class RoundDTO {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key mKey;

	@Persistent()
	private List<ScoredHoleDTO> mScores;

	public RoundDTO(Key key, List<ScoredHoleDTO> scores) {
		super();
		mKey = key;
		mScores = scores;
	}

	public Key getKey() {
		return mKey;
	}

	public void setKey(Key key) {
		mKey = key;
	}

	public List<ScoredHoleDTO> getScores() {
		return mScores;
	}

	public void setScores(List<ScoredHoleDTO> scores) {
		mScores = scores;
	}
}
